package com.ycd.gis.service.impl;

import java.util.List;
import com.ycd.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ycd.gis.mapper.GisUserDeveloperMapper;
import com.ycd.gis.domain.GisUserDeveloper;
import com.ycd.gis.service.IGisUserDeveloperService;
import com.ycd.common.core.text.Convert;

/**
 * develop_userService业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
@Service
public class GisUserDeveloperServiceImpl implements IGisUserDeveloperService 
{
    @Autowired
    private GisUserDeveloperMapper gisUserDeveloperMapper;

    /**
     * 查询develop_user
     * 
     * @param id develop_user主键
     * @return develop_user
     */
    @Override
    public GisUserDeveloper selectGisUserDeveloperById(Long id)
    {
        return gisUserDeveloperMapper.selectGisUserDeveloperById(id);
    }

    @Override
    public GisUserDeveloper selectGisUserDeveloperByUserId(Long userId) {
        return gisUserDeveloperMapper.selectGisUserDeveloperByUserId(userId);
    }

    /**
     * 查询develop_user列表
     * 
     * @param gisUserDeveloper develop_user
     * @return develop_user
     */
    @Override
    public List<GisUserDeveloper> selectGisUserDeveloperList(GisUserDeveloper gisUserDeveloper)
    {
        return gisUserDeveloperMapper.selectGisUserDeveloperList(gisUserDeveloper);
    }

    /**
     * 新增develop_user
     * 
     * @param gisUserDeveloper develop_user
     * @return 结果
     */
    @Override
    public int insertGisUserDeveloper(GisUserDeveloper gisUserDeveloper)
    {
        gisUserDeveloper.setCreateTime(DateUtils.getNowDate());
        return gisUserDeveloperMapper.insertGisUserDeveloper(gisUserDeveloper);
    }

    /**
     * 修改develop_user
     * 
     * @param gisUserDeveloper develop_user
     * @return 结果
     */
    @Override
    public int updateGisUserDeveloper(GisUserDeveloper gisUserDeveloper)
    {
        return gisUserDeveloperMapper.updateGisUserDeveloper(gisUserDeveloper);
    }

    /**
     * 批量删除develop_user
     * 
     * @param ids 需要删除的develop_user主键
     * @return 结果
     */
    @Override
    public int deleteGisUserDeveloperByIds(String ids)
    {
        return gisUserDeveloperMapper.deleteGisUserDeveloperByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除develop_user信息
     * 
     * @param id develop_user主键
     * @return 结果
     */
    @Override
    public int deleteGisUserDeveloperById(Long id)
    {
        return gisUserDeveloperMapper.deleteGisUserDeveloperById(id);
    }
}
